import { Column, Table } from 'sequelize-typescript';
import { BaseModel } from '@/model'
import { DataTypes } from "sequelize";

@Table
export class DbResource extends BaseModel {
  @Column({ type: DataTypes.INTEGER, allowNull: false, comment: '资源类型' })
  classify: number;

  @Column({ type: DataTypes.STRING, allowNull: false, comment: "资源编码" })
  code: string;

  @Column({ type: DataTypes.STRING, allowNull: false, comment: "编码名称" })
  name: string;

  @Column({ type: DataTypes.TEXT, comment: "返回数据" })
  data: string;

  @Column({ type: DataTypes.STRING, comment: "说明" })
  summary: string;
}
